package com.j256.ormlite.logger;

import java.util.Arrays;

public class Logger
{
  private static final String ARG_STRING = "{}";
  private static final int ARG_STRING_LENGTH = "{}".length();
  private static final Object UNKNOWN_ARG = new Object();
  private final Log log;

  public Logger(Log paramLog)
  {
    this.log = paramLog;
  }

  private void appendArg(StringBuilder paramStringBuilder, Object paramObject)
  {
    if (paramObject == UNKNOWN_ARG)
      return;
    if (paramObject == null)
    {
      paramStringBuilder.append("null");
      return;
    }
    if (paramObject.getClass().isArray())
    {
      paramStringBuilder.append(Arrays.toString((Object[])paramObject));
      return;
    }
    paramStringBuilder.append(paramObject);
  }

  private String buildFullMessage(String paramString, Object paramObject1, Object paramObject2, Object paramObject3, Object[] paramArrayOfObject)
  {
    StringBuilder localStringBuilder = null;
    int i = 0;
    int j = 0;
    int k = paramString.indexOf("{}", i);
    if (k == -1)
    {
      if (localStringBuilder == null)
        return paramString;
    }
    else
    {
      if (localStringBuilder == null)
        localStringBuilder = new StringBuilder(128);
      localStringBuilder.append(paramString, i, k);
      i = k + ARG_STRING_LENGTH;
      if (paramArrayOfObject == null)
        if (j == 0)
          appendArg(localStringBuilder, paramObject1);
      while (true)
      {
        j++;
        break;
        if (j == 1)
        {
          appendArg(localStringBuilder, paramObject2);
        }
        else if (j == 2)
        {
          appendArg(localStringBuilder, paramObject3);
          continue;
          if (j < paramArrayOfObject.length)
            appendArg(localStringBuilder, paramArrayOfObject[j]);
        }
      }
    }
    localStringBuilder.append(paramString, i, paramString.length());
    return localStringBuilder.toString();
  }

  private void innerLog(Log.Level paramLevel, Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2, Object paramObject3, Object[] paramArrayOfObject)
  {
    String str;
    if (this.log.isLevelEnabled(paramLevel))
    {
      str = buildFullMessage(paramString, paramObject1, paramObject2, paramObject3, paramArrayOfObject);
      if (paramThrowable == null)
        this.log.log(paramLevel, str);
    }
    else
    {
      return;
    }
    this.log.log(paramLevel, str, paramThrowable);
  }

  public void debug(String paramString)
  {
    innerLog(Log.Level.DEBUG, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void debug(String paramString, Object paramObject)
  {
    innerLog(Log.Level.DEBUG, null, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void debug(String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(Log.Level.DEBUG, null, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void debug(String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(Log.Level.DEBUG, null, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void debug(String paramString, Object[] paramArrayOfObject)
  {
    innerLog(Log.Level.DEBUG, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public void debug(Throwable paramThrowable, String paramString)
  {
    innerLog(Log.Level.DEBUG, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void debug(Throwable paramThrowable, String paramString, Object paramObject)
  {
    innerLog(Log.Level.DEBUG, paramThrowable, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void debug(Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(Log.Level.DEBUG, paramThrowable, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void debug(Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(Log.Level.DEBUG, paramThrowable, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void debug(Throwable paramThrowable, String paramString, Object[] paramArrayOfObject)
  {
    innerLog(Log.Level.DEBUG, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public void error(String paramString)
  {
    innerLog(Log.Level.ERROR, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void error(String paramString, Object paramObject)
  {
    innerLog(Log.Level.ERROR, null, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void error(String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(Log.Level.ERROR, null, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void error(String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(Log.Level.ERROR, null, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void error(String paramString, Object[] paramArrayOfObject)
  {
    innerLog(Log.Level.ERROR, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public void error(Throwable paramThrowable, String paramString)
  {
    innerLog(Log.Level.ERROR, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void error(Throwable paramThrowable, String paramString, Object paramObject)
  {
    innerLog(Log.Level.ERROR, paramThrowable, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void error(Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(Log.Level.ERROR, paramThrowable, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void error(Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(Log.Level.ERROR, paramThrowable, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void error(Throwable paramThrowable, String paramString, Object[] paramArrayOfObject)
  {
    innerLog(Log.Level.ERROR, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public void fatal(String paramString)
  {
    innerLog(Log.Level.FATAL, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void fatal(String paramString, Object paramObject)
  {
    innerLog(Log.Level.FATAL, null, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void fatal(String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(Log.Level.FATAL, null, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void fatal(String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(Log.Level.FATAL, null, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void fatal(String paramString, Object[] paramArrayOfObject)
  {
    innerLog(Log.Level.FATAL, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public void fatal(Throwable paramThrowable, String paramString)
  {
    innerLog(Log.Level.FATAL, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void fatal(Throwable paramThrowable, String paramString, Object paramObject)
  {
    innerLog(Log.Level.FATAL, paramThrowable, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void fatal(Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(Log.Level.FATAL, paramThrowable, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void fatal(Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(Log.Level.FATAL, paramThrowable, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void fatal(Throwable paramThrowable, String paramString, Object[] paramArrayOfObject)
  {
    innerLog(Log.Level.FATAL, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public void info(String paramString)
  {
    innerLog(Log.Level.INFO, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void info(String paramString, Object paramObject)
  {
    innerLog(Log.Level.INFO, null, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void info(String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(Log.Level.INFO, null, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void info(String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(Log.Level.INFO, null, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void info(String paramString, Object[] paramArrayOfObject)
  {
    innerLog(Log.Level.INFO, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public void info(Throwable paramThrowable, String paramString)
  {
    innerLog(Log.Level.INFO, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void info(Throwable paramThrowable, String paramString, Object paramObject)
  {
    innerLog(Log.Level.INFO, paramThrowable, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void info(Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(Log.Level.INFO, paramThrowable, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void info(Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(Log.Level.INFO, paramThrowable, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void info(Throwable paramThrowable, String paramString, Object[] paramArrayOfObject)
  {
    innerLog(Log.Level.INFO, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public boolean isLevelEnabled(Log.Level paramLevel)
  {
    return this.log.isLevelEnabled(paramLevel);
  }

  public void log(Log.Level paramLevel, String paramString)
  {
    innerLog(paramLevel, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void log(Log.Level paramLevel, String paramString, Object paramObject)
  {
    innerLog(paramLevel, null, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void log(Log.Level paramLevel, String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(paramLevel, null, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void log(Log.Level paramLevel, String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(paramLevel, null, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void log(Log.Level paramLevel, String paramString, Object[] paramArrayOfObject)
  {
    innerLog(paramLevel, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public void log(Log.Level paramLevel, Throwable paramThrowable, String paramString)
  {
    innerLog(paramLevel, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void log(Log.Level paramLevel, Throwable paramThrowable, String paramString, Object paramObject)
  {
    innerLog(paramLevel, paramThrowable, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void log(Log.Level paramLevel, Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(paramLevel, paramThrowable, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void log(Log.Level paramLevel, Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(paramLevel, paramThrowable, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void log(Log.Level paramLevel, Throwable paramThrowable, String paramString, Object[] paramArrayOfObject)
  {
    innerLog(paramLevel, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public void trace(String paramString)
  {
    innerLog(Log.Level.TRACE, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void trace(String paramString, Object paramObject)
  {
    innerLog(Log.Level.TRACE, null, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void trace(String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(Log.Level.TRACE, null, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void trace(String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(Log.Level.TRACE, null, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void trace(String paramString, Object[] paramArrayOfObject)
  {
    innerLog(Log.Level.TRACE, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public void trace(Throwable paramThrowable, String paramString)
  {
    innerLog(Log.Level.TRACE, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void trace(Throwable paramThrowable, String paramString, Object paramObject)
  {
    innerLog(Log.Level.TRACE, paramThrowable, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void trace(Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(Log.Level.TRACE, paramThrowable, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void trace(Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(Log.Level.TRACE, paramThrowable, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void trace(Throwable paramThrowable, String paramString, Object[] paramArrayOfObject)
  {
    innerLog(Log.Level.TRACE, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public void warn(String paramString)
  {
    innerLog(Log.Level.WARNING, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void warn(String paramString, Object paramObject)
  {
    innerLog(Log.Level.WARNING, null, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void warn(String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(Log.Level.WARNING, null, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void warn(String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(Log.Level.WARNING, null, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void warn(String paramString, Object[] paramArrayOfObject)
  {
    innerLog(Log.Level.WARNING, null, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }

  public void warn(Throwable paramThrowable, String paramString)
  {
    innerLog(Log.Level.WARNING, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void warn(Throwable paramThrowable, String paramString, Object paramObject)
  {
    innerLog(Log.Level.WARNING, paramThrowable, paramString, paramObject, UNKNOWN_ARG, UNKNOWN_ARG, null);
  }

  public void warn(Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2)
  {
    innerLog(Log.Level.WARNING, paramThrowable, paramString, paramObject1, paramObject2, UNKNOWN_ARG, null);
  }

  public void warn(Throwable paramThrowable, String paramString, Object paramObject1, Object paramObject2, Object paramObject3)
  {
    innerLog(Log.Level.WARNING, paramThrowable, paramString, paramObject1, paramObject2, paramObject3, null);
  }

  public void warn(Throwable paramThrowable, String paramString, Object[] paramArrayOfObject)
  {
    innerLog(Log.Level.WARNING, paramThrowable, paramString, UNKNOWN_ARG, UNKNOWN_ARG, UNKNOWN_ARG, paramArrayOfObject);
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.j256.ormlite.logger.Logger
 * JD-Core Version:    0.6.2
 */